/** @odoo-module **/
import publicWidget from "@web/legacy/js/public/public_widget";


const MyHelloSnippet = publicWidget.Widget.extend({
    selector: ".s_my_hello_snippet",
    disabledInEditableMode: false,

    /**
     * @override
     */
    async start() {
       // this.snippetEl = this.el.querySelector(".s_my_hello_snippet");  误导
        console.log("Hello snippet initialized:", this.el);
        return this._super(...arguments);
    },
});

publicWidget.registry.MyHelloSnippet = MyHelloSnippet;
export default MyHelloSnippet;
